import React from 'react';

// import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom';
import { HashRouter as Router, Route, Switch, Link } from 'react-router-dom';

import Login from './pages/Login/';
import Home from './pages/Home/'; 

const AppRouter = () => (
    <Router>
        <div>
            <ul>
                <li><Link to="/Login">登陆</Link></li>
                <li><Link to="/Home">首页</Link></li>
            </ul>
            <Switch>
                <Route exact path="/Login" component={Login} />
                <Route path="/" component={Home} />
            </Switch>
        </div>
    </Router>
);

export default AppRouter;